﻿using System;
using System.Linq.Expressions;
using System.Web.Mvc;

namespace BoneSystem.Extensions.Grid
{
    public static class Grid
    {
        public static GridLayout<T, TProperty> BsGrid<T, TProperty>(this HtmlHelper<T> htmlHelper,
            Expression<Func<T, TProperty>> expression, GridSettings gridSettings)
        {
            return new GridLayout<T, TProperty>(htmlHelper,expression)
            {
                Settings = gridSettings
            };
        }
    }
}
